FROM hseeberger/scala-sbt

ENV ZK_HOSTS=10.4.7.11:2181

RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime &&\
    echo "Asia/Shanghai" > /etc/timezone


RUN mkdir -p /tmp
ADD kafka-manager-2.0.0.2.zip /tmp
RUN cd /tmp
RUN unzip  -d / /tmp/kafka-manager-2.0.0.2.zip &&\
    rm -rf /tmp/kafka-manager-2.0.0.2.zip

WORKDIR /kafka-manager-2.0.0.2
EXPOSE 9000
ENTRYPOINT ["./bin/kafka-manager","-Dconfig.file=conf/application.conf"]
